package com.bawei.bydayzg_two.adapter

import android.view.Menu
import com.bawei.base.bean.IndexMenu
import com.bawei.bydayzg_two.R
import com.bawei.bydayzg_two.Utils.GildUtils
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class MenuAdapter:BaseQuickAdapter<IndexMenu,BaseViewHolder>(R.layout.item_menu) {
    override fun convert(holder: BaseViewHolder, item: IndexMenu) {
        GildUtils.loadYuan(context,item.pic,holder.getView(R.id.menu_iv))
        holder.setText(R.id.menu_tv,item.name)
    }
}